/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package snail.data;

/**
 *
 * @author Mickel
 */
public abstract class DAOFactory {

    public static final Class HIBERNATE = snail.data.HibernateDAOFactory.class;

    public static DAOFactory instance(Class factory) {
        try {
            return (DAOFactory) factory.newInstance();
        } catch (Exception ex) {
            throw new RuntimeException("Couldn't create DAOFactory: " + factory);
        }
    }

    // DAO Interfaces
    public abstract IUserDAO getUserDAO();

}
